let chart2 = echarts.init(document.getElementById("two"));
option = {
    title: {
        text: '用户借阅类型',
        subtext: '喜爱偏好',
        left: 'center'
    },
    color: ['#3398DB','#1E90FF','#AFEEEE','#00BFFF','#87CEFA'],
    tooltip: {
        trigger: 'item',
        formatter: '{a} <br/>{b} : {c} ({d}%)'
    },
    legend: {
        orient: 'vertical',
        left: 'left',
        data: ['文学', '教育', '军事', '经济', '娱乐']
    },
    series: [
        {
            name: '喜爱类型',
            type: 'pie',
            radius: '55%',
            center: ['50%', '60%'],
            data: [
                {value: 335, name: '文学'},
                {value: 310, name: '教育'},
                {value: 234, name: '军事'},
                {value: 135, name: '经济'},
                {value: 1548, name: '娱乐'}
            ],
            emphasis: {
                itemStyle: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        }
    ]
};
chart2.setOption(option);